package com.iwayin.core.common;

/**
 * 
 * @author LiuWenLong
 * @version 2012-2-9下午1:39:26
 * @descriptions 随机数
 *
 */
public class RandomUtil {
	
	public static int random(int max){
		if(max<=1){
			return 0;
		}
		int result = (int) (Math.random() * (System.currentTimeMillis()/max-1));
		return result%max ;
	}
}
